package cn.istartfinancial.entity.flowable;

import javax.persistence.Column;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.MappedSuperclass;
import java.io.Serializable;
import java.util.Date;

/**
 * @author: Nzp
 * @date: 2018/8/22
 * @description: 基础抽象任务实体
 */
@MappedSuperclass
public abstract class BaseTask implements Serializable
{
    private static final long serialVersionUID = -2422840714005593194L;

    @Id
    @GeneratedValue(strategy = GenerationType.AUTO, generator = "JDBC")
    protected String id;
    @Column(name = "user_id")
    protected String userId;
    @Column(name = "user_name")
    protected String userName;
    @Column(name = "process_instance_Id")
    protected String processInstanceId;
    protected String status;
    @Column(name = "create_date")
    protected Date createDate;
    @Column(name = "create_by")
    protected String createBy;
    @Column(name = "update_date")
    protected Date updateDate;
    @Column(name = "update_by")
    protected String updateBy;
    protected String reason;
    //***实时节点信息
    protected String taskName;
    private String urlpath;
    private Integer submittimes;

    /**
     * @return id
     */
    public String getId()
    {
        return id;
    }

    /**
     * @param id
     */
    public void setId(String id)
    {
        this.id = id == null ? null : id.trim();
    }

    /**
     * @return user_id
     */
    public String getUserId()
    {
        return userId;
    }

    /**
     * @param userId
     */
    public void setUserId(String userId)
    {
        this.userId = userId == null ? null : userId.trim();
    }

    /**
     * @return user_name
     */
    public String getUserName()
    {
        return userName;
    }

    /**
     * @param userName
     */
    public void setUserName(String userName)
    {
        this.userName = userName == null ? null : userName.trim();
    }


    /**
     * @return reason
     */
    public String getReason()
    {
        return reason;
    }

    /**
     * @param reason
     */
    public void setReason(String reason)
    {
        this.reason = reason == null ? null : reason.trim();
    }

    /**
     * @return process_instance_Id
     */
    public String getProcessInstanceId()
    {
        return processInstanceId;
    }

    /**
     * @param processInstanceId
     */
    public void setProcessInstanceId(String processInstanceId)
    {
        this.processInstanceId = processInstanceId == null ? null : processInstanceId.trim();
    }

    /**
     * @return status
     */
    public String getStatus()
    {
        return status;
    }

    /**
     * @param status
     */
    public void setStatus(String status)
    {
        this.status = status == null ? null : status.trim();
    }

    /**
     * @return create_date
     */
    public Date getCreateDate()
    {
        return createDate;
    }

    /**
     * @param createDate
     */
    public void setCreateDate(Date createDate)
    {
        this.createDate = createDate;
    }

    /**
     * @return create_by
     */
    public String getCreateBy()
    {
        return createBy;
    }

    /**
     * @param createBy
     */
    public void setCreateBy(String createBy)
    {
        this.createBy = createBy == null ? null : createBy.trim();
    }

    /**
     * @return update_date
     */
    public Date getUpdateDate()
    {
        return updateDate;
    }

    /**
     * @param updateDate
     */
    public void setUpdateDate(Date updateDate)
    {
        this.updateDate = updateDate;
    }

    /**
     * @return update_by
     */
    public String getUpdateBy()
    {
        return updateBy;
    }

    /**
     * @param updateBy
     */
    public void setUpdateBy(String updateBy)
    {
        this.updateBy = updateBy == null ? null : updateBy.trim();
    }

    public String getTaskName()
    {
        return taskName;
    }

    public void setTaskName(String taskName)
    {
        this.taskName = taskName;
    }

    public String getUrlpath()
    {
        return urlpath;
    }

    public void setUrlpath(String urlpath)
    {
        this.urlpath = urlpath;
    }

    public Integer getSubmittimes()
    {
        return submittimes;
    }

    public void setSubmittimes(Integer submittimes)
    {
        this.submittimes = submittimes;
    }
}
